package com.wealth.sms.enums;

public enum MessageTemplateEnum {
	VERIFYCODE(1,"发送验证码"),PAYSUCCESS(2,"订单支付成功"),DELIVERYSUCCESS(3,"订单发货成功");
	private int value;
	private String comment;
	
	
	private MessageTemplateEnum(int value, String comment) {
		this.value = value;
		this.comment = comment;
	}
	public int getValue() {
		return value;
	}
	public void setValue(int value) {
		this.value = value;
	}
	
	public String getComment() {
		return comment;
	}
	public void setComment(String comment) {
		this.comment = comment;
	}
	public static MessageTemplateEnum get(int value){
		for (MessageTemplateEnum o:MessageTemplateEnum.values()) {
			if(o.value ==value){
				return o;
			}
		}
		return null;
	}
	
}
